package jmm;

public class ClassVariable {

    int i;

    public static void main(String[] args) {
        ClassVariable classVariable = new ClassVariable();
        classVariable.show1();
    }

    public void show1() {
        i = 1;
        show2(i);
        System.out.println("show1中的i=" + i);
    }

    public void show2(int a) {
        i = a + 1;
        System.out.println("show2中的i=" + i);
    }
}


